<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\OperationManagement\GovernmentDevice;
use Faker\Generator as Faker;
use Illuminate\Support\Str;

$factory->define(GovernmentDevice::class, function (Faker $faker) {
    return [
        'name' => $faker->name,
        // 'device_name' => $faker->name,
        'number' => $faker->numberBetween(1,5),
        // 'type_id' => $faker->numberBetween(1,5),
        'device_tag' => $faker->numberBetween(1,5),
        'address' => $faker->address,
        // 'lon' => $faker->numberBetween(1,10),
        // 'lat' => $faker->numberBetween(1,10),
        // 'location' => 'POINT(' . $faker->randomFloat(6,-180,180).' '. $faker->randomFloat(6,-90,90) . ')',
        'service_time' => $faker->time('Y-m-d H:i:s'),
        'last_time' => $faker->time('Y-m-d H:i:s'),
        'next_time' => $faker->time('Y-m-d H:i:s'),
        'department_id' => $faker->numberBetween(1,10),
        'principal_id' => $faker->numberBetween(1,10),
        'phone' => $faker->numberBetween(1,1000)
    ];
});
